package cn.edu.scau.cmi.zhuangzhihong.composite.safe;

public class main {

	public StringBuilder out() {
		Composite root = new Composite("E盘");
		Composite music = new Composite("音乐");
		Composite learn = new Composite("学习");
		learn.add(new Leaf("Java核心技术.pdf"));
		learn.add(new Leaf("java笔记.md"));
		
		root.add(music);
		root.add(learn);
		return root.printStruct("");
	}
}
